import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity({ name: 'supplier' })
export class Supplier extends BaseEntity {

    @PrimaryGeneratedColumn({ name: 'supplier_id' })
    public supplierId: number;

    @Column('varchar', { name: 'supplier_name', length: 255 })
    public supplierName: string;

    @Column('varchar', { length: 255 })
    public location: string;
}
